package demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86138
 * Date: 2024-06-04
 * Time: 8:38
 */
public class Test {
    public static void main(String[] args) {
        Cat cat = new Cat("mimi",1);
        cat.setName("小猫");
        cat.bark();

        Dog dog = new Dog("旺财",2);
        dog.bark();
    }
}
